home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / gscompt.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  2.2 KB  |  54 lines

  1. /* Copyright (C) 1997 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: gscompt.h,v 1.2 2000/09/19 19:00:26 lpd Exp $ */
  20. /* Abstract types for compositing objects */
  21.  
  22. #ifndef gscompt_INCLUDED
  23. #  define gscompt_INCLUDED
  24.  
  25. /*
  26.  * Compositing is the next-to-last step in the rendering pipeline.
  27.  * It occurs after color correction but before halftoning (if needed).
  28.  *
  29.  * gs_composite_t is the abstract superclass for compositing functions such
  30.  * as RasterOp functions or alpha-based compositing.  Concrete subclasses
  31.  * must provide a default implementation (presumably based on
  32.  * get_bits_rectangle and copy_color) for devices that provide no optimized
  33.  * implementation of their own.
  34.  *
  35.  * A client that wants to produce composited output asks the target device
  36.  * to create an appropriate compositing device based on the target device
  37.  * and the gs_composite_t (and possibly other elements of the imager state).
  38.  * If the target device doesn't have its own implementation for the
  39.  * requested function, format, and state, it passes the buck to the
  40.  * gs_composite_t, which may make further tests for special cases before
  41.  * creating and returning a compositing device that uses the default
  42.  * implementation.
  43.  */
  44. typedef struct gs_composite_s gs_composite_t;
  45.  
  46. /*
  47.  * To enable fast cache lookup and equality testing, compositing functions,
  48.  * like halftones, black generation functions, etc., carry a unique ID (time
  49.  * stamp).
  50.  */
  51. gs_id gs_composite_id(P1(const gs_composite_t * pcte));
  52.  
  53. #endif /* gscompt_INCLUDED */
  54.